package com.food.eat.impl;

import org.springframework.stereotype.Service;

/**
 * @Author RenPu
 * @Date 2022/4/10 17:30
 * @Version 1.0
 * @Description: 策略模式的编写1.0
 **/

@Service
public class GrantTypeSeriveImpl {


    public String redPaper(String resourceId){
        //红包的发放方式
        return "每周末9点发放";
    }
    public String shopping(String resourceId){
        //购物券的发放方式
        return "每周三9点发放";
    }
    public String QQVip(String resourceId){
        //qq会员的发放方式
        return "每周一0点开始秒杀";
    }

}
